{# Layout macros: the pieces that frame a page rather than fill it.
Import what you need:
{% from "components/macros/layout.html" import card, stat_tile, dialog, dropdown %}
#}
{% from "components/macros/feedback.html" import empty_state %}
{# A titled surface. The body comes via {% call %}; the heading id ties the
section to its title for assistive tech. ``id`` lets a page target the
card with htmx; it defaults to a slug of the title. #}
{% macro card(title=None, subtitle=None, id=None) %}
{% set card_id = id or ("card-" ~ title|lower|replace(" ", "-")) %}
{{ subtitle }}{{ title }}
{% if subtitle %}